#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void ksb(int x, int y)
{
	int i = 0;
	int j = 0;
	for (i = 1; i <= x; i++)
	{
	
		for (j = 1; j <= y; j++)
		{
			printf("%d*%d=%d  ", i, j, i *j );
			
		}
		
		printf("\n");
	}
}
int main()
{
	int i = 0;
	int j = 0;
	scanf("%d %d", &i, &j);
	ksb(i, j);
	return 0;
}